﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace NETMovie.UI.WebMVC.Models
{

    public class PaymentModel
    {
        [Required]
        public int TransactionID { get; set; }
        
        [Required]
        [DisplayName("Transaction No.")]
        public string TransactionNo { get; set; }

        [Required]
        [DisplayName("Credit Card Type")]
        public string CCType { get; set; }

        [Required]
        [DisplayName("Credit Card No.")]
        public string CCNo { get; set; }

        [Required]
        [DisplayName("Expiry Month")]
        [Range(1, 12)]
        public int ExpiryMonth { get; set; }

        [Required]
        [DisplayName("Expiry Month")]
        [Range(1990, 2200)]
        public int ExpiryYear { get; set; }

        [Required]
        [DisplayName("First Name")]
        public string PayerFirstName { get; set; }

        [Required]
        [DisplayName("Last Name")]
        public string PayerLastName { get; set; }

        [Required]
        [DisplayName("Address Line 1")]
        public string AddressLine1 { get; set; }

        [DisplayName("Address Line 2")]
        public string AddressLine2 { get; set; }

        [Required]
        [DisplayName("City")]
        public string City { get; set; }

        [Required]
        [DisplayName("Country")]
        public string Country { get; set; }

        [Required]
        [DisplayName("Postal Code")]
        public string PostalCode { get; set; }

        [Required]
        [DisplayName("Total Amount")]
        public decimal TotalAmount { get; set; }

        public IEnumerable<SelectListItem> CCTypes { get; set; }

        public IEnumerable<SelectListItem> Countries { get; set; }    
    }
}